{extend name="public:_base" /}

{block name="js"}
{include file="public/_validform"}
<script type="text/javascript">
$("[name='url']").find("[value='{$data.url ?$data.url :$Request.param.url }']").attr("selected", true);
</script>
{/block}

{block name="main"}

<div class="page-container">

    <div class="Huialert Huialert-info">
        <i class="Hui-iconfont">&#xe6a6;</i>
        <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
        <ul>
            <li>导航级别:灰色表示在“栏目管理”已经禁用</li>
        </ul>
    </div>
    
    <form action="" method="post" class="form form-horizontal" id="form">
        
        <table class="table table-border table-bordered table-bg table-style">
            <thead>
                <tr>
                    <th colspan="2" scope="col">填写信息</th>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <th>
                        <span class="c-red">*</span>标题：
                    </th>
                    <td>
                        <input type="text" class="input-text" value="{$data.title ?? ''}" placeholder="" id="title" datatype="*" name="title">
                    </td>
                </tr>
                <tr>
                    <th>
                        导航级别：
                    </th>
                    <td>
                        <select name="url" id="pid" class="select">
                            <option value="#">新导航</option>
                            {notempty name="allnav"}
                                {volist name="allnav" id="vo"}
                                    <option value="{$vo.link}" {eq name="$vo.status" value="0"}disabled="true" style="background-color:#f5f5f5;" {/eq}>{$vo['level']}{$vo.name}</option>
                                {/volist}
                            {/notempty}
                        </select>
                    </td>
                </tr>

            </tbody>
            
            <tfoot>
                <tr>
                    <th></th>
                    <td>
                        {:token()}
                        <input name="position" value="{$Request.param.position ?? ''}" type="hidden" />

                        <input class="btn radius btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
                        <input class="btn radius btn-default radius" type="reset" value="&nbsp;&nbsp;重置&nbsp;&nbsp;">

                        <!-- <button onClick="layer_close();" class="btn radius btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button> -->
                    </td>
                </tr>
            </tfoot>
            
        </table>

    </form>
    
</div>
{/block}
